<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>#site.title#</title>
    <link rel="stylesheet" href="../css/global.css"/> 
    <style>
      #preview{
        width: 300px;
        height: 300px;
        background-color: red;
      }
    </style>
</head>

<body>
#test#

#site.title#
<div class="test_1"></div>
<img id="preview"></img>
<i class="fa fa-home"></i>
<cms:admin.test>
  #test#
</cms:admin.test>
<script>

import image from '../img/icon.png';
document.getElementById('preview').src = image;
console.log(image);
</script>
</div>
</body>
</html>